package com.happy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName ("user_info")
public class UserEntity extends BaseEntity {

    @TableId (value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField ("userName")
    private String userName;
    @TableField ("password")
    private String password;
    @TableField ("nickName")
    private String nickName;
    @TableField ("phone")
    private String phone;
    @TableField ("email")
    private String email;
    @TableField ("company")
    private String company;
    @TableField ("address")
    private String address;
    @TableField ("sign")
    private String sign;//个性签名
    @TableField ("openid")
    private String openid;
    @TableField ("sex")
    private Integer sex;
    @TableField ("country")
    private String country;//国家
    @TableField ("province")
    private String province;//省份
    @TableField ("city")
    private String city;//城市
    @TableField ("headimgurl")
    private String headImgUrl;//头像地址
    @TableField ("createTime")
    private Date createTime;
    @TableField ("changeTime")
    private Date changeTime;
    @TableField ("isUsed")
    private Integer isUsed;

    public Integer getId () {
        return id;
    }

    public void setId ( Integer id ) {
        this.id = id;
    }

    public String getUserName () {
        return userName;
    }

    public void setUserName ( String userName ) {
        this.userName = userName;
    }

    public String getPassword () {
        return password;
    }

    public void setPassword ( String password ) {
        this.password = password;
    }

    public String getNickName () {
        return nickName;
    }

    public void setNickName ( String nickName ) {
        this.nickName = nickName;
    }

    public String getPhone () {
        return phone;
    }

    public void setPhone ( String phone ) {
        this.phone = phone;
    }

    public String getEmail () {
        return email;
    }

    public void setEmail ( String email ) {
        this.email = email;
    }

    public String getCompany () {
        return company;
    }

    public void setCompany ( String company ) {
        this.company = company;
    }

    public String getAddress () {
        return address;
    }

    public void setAddress ( String address ) {
        this.address = address;
    }

    public String getSign () {
        return sign;
    }

    public void setSign ( String sign ) {
        this.sign = sign;
    }

    public String getOpenid () {
        return openid;
    }

    public void setOpenid ( String openid ) {
        this.openid = openid;
    }

    public Integer getSex () {
        return sex;
    }

    public void setSex ( Integer sex ) {
        this.sex = sex;
    }

    public String getCountry () {
        return country;
    }

    public void setCountry ( String country ) {
        this.country = country;
    }

    public String getProvince () {
        return province;
    }

    public void setProvince ( String province ) {
        this.province = province;
    }

    public String getCity () {
        return city;
    }

    public void setCity ( String city ) {
        this.city = city;
    }

    public String getHeadImgUrl () {
        return headImgUrl;
    }

    public void setHeadImgUrl ( String headImgUrl ) {
        this.headImgUrl = headImgUrl;
    }

    public Date getCreateTime () {
        return createTime;
    }

    public void setCreateTime ( Date createTime ) {
        this.createTime = createTime;
    }

    public Date getChangeTime () {
        return changeTime;
    }

    public void setChangeTime ( Date changeTime ) {
        this.changeTime = changeTime;
    }

    public Integer getIsUsed () {
        return isUsed;
    }

    public void setIsUsed ( Integer isUsed ) {
        this.isUsed = isUsed;
    }

    @Override
    public String toString () {
        return "UserEntity{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", nickName='" + nickName + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", company='" + company + '\'' +
                ", address='" + address + '\'' +
                ", sign='" + sign + '\'' +
                ", openid='" + openid + '\'' +
                ", sex=" + sex +
                ", country='" + country + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", headImgUrl='" + headImgUrl + '\'' +
                ", createTime='" + createTime + '\'' +
                ", changeTime='" + changeTime + '\'' +
                ", isUsed=" + isUsed +
                '}';
    }
}
